<template>
      <router-view  v-slot="{ Component }">
        <keep-alive>
          <component v-if="route.meta.keepAlive" :is="Component"/>
        </keep-alive>
        <component v-if="!route.meta.keepAlive" :is="Component"/>

      </router-view>
</template>

<script setup>
import {useRoute} from "vue-router";
const route = useRoute();
</script>
<style lang="less" scoped>
router-view {
  width: 100%;
  position: relative;
}
</style>
